<?php
global $smarty;

$thisPage = "misc";

TemplateHelper::useLayout("default", true);

function buildLayout($smarty) {
}

function executeService($serviceName, $params, $smarty) {
    switch ($serviceName) {
        case "gettemplatesfor" : { return service_gettemplatesfor($params); }
    }
}

function service_getTemplatesFor($params) {
    $result = array();
    switch ($params['editorName']) {
        case "emailtext" : { $result = tmplEmailsToGroups(); break; }
        case "newsletter" : { $result = tmplNewsletters(); break; }
        case "register_validation" : { $result = tmplRegisterValidation(); break; }
        case "invoice" : { $result = tmplInvoice(); break; }
        case "usercreated" : { $result = tmplUserCreated(); break; }
        case "sendorder" : { $result = tmplSendOrdeR(); break; }
    }
    return serviceSuccessful($result);
}

function tmplEmailsToGroups() {
    return array(
        firstname   => "Firstname",
        lastname    => "Lastname",
        title       => "Title",
        companyname => "Company name",
    );
}

function tmplNewsletters() {
    return array(
        firstname => "Firstname",
        lastname  => "Lastname",
        title     => "Title",
        companyname => "Company name",
        companylist_exporter => "Exporter companies lsit",
        companylist_importer => "Importer company list",
        companylist_businessleads => "Business leaders list",
        companylist_recservices   => "Services in Hungary list",
        companylist_hungarianabroad => "Hungarian companies abroad list",
    );
}

function tmplRegisterValidation() {
    return array(
        firstname => "Firstname",
        lastname  => "Lastname",
        title     => "Title",
        username  => "username",
        password  => "password",
        link      => "Confirmation link",
    );
}

function tmplInvoice() {
    return array(
        firstname => "Firstname",
        lastname  => "Lastname",
        title     => "Title",
        link      => "Payment link",
    );
}

function tmplUserCreated() {
    return array(
        firstname => "Firstname",
        lastname  => "Lastname",
        title     => "Title",
        username  => "Username",
        password  => "Password",
        email     => "Email address",
    );
}

function tmplSponsorReminder() {
    return array(
        firstname => "Firstname",
        lastname  => "Lastname",
        title     => "Title",
        companyname => "Company name",
        expiredate  => "Sponsoration expire",
    );
}

function tmplSendOrder() {
    return array(
        firstname => "Firstname",
        lastname  => "Lastname",
        title     => "Title",
        orderdata => "Order list",
    );
}

function getPageHeader() {
}

function getPageFooter() {
}

?>
